package com.web.cms.pan.model;

import com.blue.core.dict.State;
import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Table;
import com.web.core.dict.PanRefType;

import java.util.Date;

/**
 * 共享实体类
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2018年04月09日
 */
@Table(name = "pan_share")
public class Share
{
	@Id
	private Integer id; // 编号
	private Integer refId; // 引用编号
	private Integer userId; // 用户编号
	private String code; // 唯一标识
	private String name; // 共享名称
	private Date createTime; // 创建时间
	private String password; // 访问密码
	private Integer count; // 访问次数
	private PanRefType refType; // 引用类型：1目录，2文件
	private State state; // 状态：0正常，1作废
	
	public Share()
	{
	}
	
	public Integer getId()
	{
		return this.id;
	}
	
	public void setId(Integer id)
	{
		this.id = id;
	}
	
	public Integer getRefId()
	{
		return this.refId;
	}
	
	public void setRefId(Integer refId)
	{
		this.refId = refId;
	}
	
	public Integer getUserId()
	{
		return this.userId;
	}
	
	public void setUserId(Integer userId)
	{
		this.userId = userId;
	}
	
	public String getCode()
	{
		return this.code;
	}
	
	public void setCode(String code)
	{
		this.code = code;
	}
	
	public String getName()
	{
		return this.name;
	}
	
	public void setName(String name)
	{
		this.name = name;
	}
	
	public Date getCreateTime()
	{
		return this.createTime;
	}
	
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	
	public String getPassword()
	{
		return this.password;
	}
	
	public void setPassword(String password)
	{
		this.password = password;
	}
	
	public Integer getCount()
	{
		return this.count;
	}
	
	public void setCount(Integer count)
	{
		this.count = count;
	}

	public PanRefType getRefType()
	{
		return refType;
	}

	public void setRefType(PanRefType refType)
	{
		this.refType = refType;
	}

	public State getState()
	{
		return state;
	}

	public void setState(State state)
	{
		this.state = state;
	}
}
